package com.yc.cloud.openai.portal.factory;//package com.yc.cloud.openai.portal.factory;
//
//import com.yc.cloud.openai.portal.dao.TextToSpeechClient;
//import com.yc.cloud.openai.portal.enums.TextToSpeechProvider;
//
//import java.util.Map;
//
//public class TextToSpeechClientFactory {
//
//    private final Map<TextToSpeechProvider, TextToSpeechClient> ttsClients;
//    private final TextToSpeechClient defaultClient;
//
//    public TextToSpeechClientFactory(Map<TextToSpeechProvider, TextToSpeechClient> ttsClients, TextToSpeechClient defaultClient) {
//        this.ttsClients = ttsClients;
//        this.defaultClient = defaultClient;
//    }
//
//    public TextToSpeechClient getClient(TextToSpeechProvider provider) {
//        return ttsClients.getOrDefault(provider, defaultClient);
//    }
//}
//
